package com.campus.common.message;

import com.campus.common.type.BuyResult;
import com.campus.common.vo.Product;

import java.util.List;
import java.io.Serializable;

public class ShopResponse extends BaseMessage implements Serializable{
	private boolean success;
    private String message;
    private List<Product> products;
    private BuyResult buyResult;

    public ShopResponse() {}
    
    public ShopResponse(boolean success, String message, List<Product> products) {
        this.success = success;
        this.message = message;
        this.products = products;
    }

    public boolean isSuccess() { return success; }
    public String getMessage() { return message; }
    public List<Product> getProducts() { return products; }
    public BuyResult getBuyResult() { return buyResult; }
    
    public void setBuyResult(BuyResult buyResult) { this.buyResult = buyResult; }

}
